//
//  NewsViewController.swift
//  SinaNews
//
//  Created by hroot on 15/8/13.
//  Copyright (c) 2015年 Lily. All rights reserved.
//

import UIKit

class NewsViewController: AppContainerViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        creatNewsChildViewController()
        
    }

        func creatNewsChildViewController() {
            let headline = HeadlineViewController()
            headline.title = "头条"
            headline.type = "toutiao"
            headline.containerController = self
            
            let entertainment = EntertainmentViewController()
            entertainment.title = "娱乐"
            entertainment.type = "ent"
            entertainment.containerController = self
            
            let sports = SportsViewController()
            sports.title = "体育"
            sports.type = "sports"
            sports.containerController = self
            
            let business = BusinessViewController()
            business.title = "财经"
            business.type = "finance"
            business.containerController = self
            
            let science = ScienceAndTechnologyViewController()
            science.title = "科技"
            science.type = "tech"
            science.containerController = self
            
            let car = CarViewController()
            car.title = "汽车"
            car.type = "auto"
            car.containerController = self
            
            let funny = FunnyViewController()
            funny.title = "搞笑"
            funny.type = "funny"
            funny.containerController = self
            
            self.viewControllers = [headline, entertainment, sports, business, science, car, funny]
            
            
        }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
